﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>


</head>
<body>
    <div>
        <input type="text" id="factorA" />
        <input type="text" id="factorB" />
        <input type="button"  onclick="return sumar();"  value="Sumar"/>
        <input type="text"  id="factorRes" />

    </div>
    <div>
        <label> F0</label>
        <input type="text" id="F0" />
        <label> F1</label>
        <input type="text"  id="F1"/>
        <button type="button" id="btnRead" >Read</button>
    </div>
    <div id="trace">

    </div>
    <script src="common.js"></script>
    <script src="common.js"></script>
    <script>


        var carro = {
            puerta: 4,
            ruera: 5,
            encender: function () {
                this.puerta = 4; 
            }
        };


        var carro = {};
        carro.puerta = 4;
        carro.rueda = 4;

        carro.encender = function () {
            this.puerta = 0;
            this.rueda = 8;
        }

        if (  carro.puerta > 0)
            carrro.encender = function () { }
        else
            carro.encender = function () { console.log("listo para"); }


        var f0 = 5;
        var f1 = 6;




        function sumar() {

            var r = new String();
            

            var suma = f0 + f1;
            f0 = suma;
            document.getElementById("factorRes").innerText = suma;

            return suma;

        }
        function resta()
        {

        }


    </script>

</body>
</html>
